package com.fpost.form.dto;

import com.fpost.domain.User;

public class UserDTO {
	
	private String userId;
	private String username;
	private String firstName;
	private String lastName;
	
	public UserDTO() {
		super();
	}

	public UserDTO(String userId, String username, String firstName, String lastName) {
		super();
		this.userId = userId;
		this.username = username;
		this.firstName = firstName;
		this.lastName = lastName;
	}
	
	public void setPropertiesFromDomainObj(User user) {
		this.userId = String.valueOf(user.getUserId());
		this.username = user.getUsername();
		this.firstName = user.getFirstName();
		this.lastName = user.getLastName();
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	

}
